package com.lzx.adx.report.enums;

public enum WifiEventTypeEnums {
    //转换类型【2新登，3，收购，4，次日留存，6，拉活UV,7拉活存单，8当日首购】

    ACTIVATE_APP("ACTIVATE_APP","1","激活"),
    RETENTION("RETENTION","5","次留"),
    LAUNCH("LAUNCH","6","应用唤起"),
    REGISTER("REGISTER","2","注册")



    ;


    private String xhsCode;

    private String wifiCode;

    private String msg;


    WifiEventTypeEnums(String xhsCode, String wifiCode, String msg) {
        this.xhsCode = xhsCode;
        this.wifiCode = wifiCode;
        this.msg = msg;
    }

    public String getXhsCode() {
        return xhsCode;
    }

    public String getWifiCode() {
        return wifiCode;
    }

    public String getMsg() {
        return msg;
    }

    public static String getXhsCodeByWifi(String xhsCode){
        for (WifiEventTypeEnums value : WifiEventTypeEnums.values()) {
            if(value.getXhsCode().equals(xhsCode)){
                return value.getWifiCode();
            }
        }
        return  null;
    }


}
